package com.igroupes.ovineherd.service;

import com.igroupes.ovineherd.dto.request.GetRequestAttribute;
import com.igroupes.ovineherd.dto.request.ModelFieldBatchRequest;
import com.igroupes.ovineherd.dto.request.ModelFieldRequest;
import com.igroupes.ovineherd.vo.ResultVO;

import java.util.List;

public interface ModelApiService {

    ResultVO add(Long modelId, ModelFieldRequest request, Long userId);

    ResultVO update(Long modelId,Long id, ModelFieldRequest request, Long userId);

    ResultVO delete(Long modelId, Long id);

    ResultVO get(Long modelId, GetRequestAttribute attribute);

    ResultVO getOne(Long modelId, Long id);

    ResultVO deleteBatch(Long modelId, List<String> ids);

    ResultVO updateBatch(Long modelId, ModelFieldBatchRequest request, Long userId);
}
